import axios from "../config/axios.default.config"
import globalApi from "@/config/globalApi"

export default class AuthorizeService {

  /**
   * 查询用户是否有权限访问 (只要是查询用户是否有 token)
   * @return {Promise<axios.AxiosResponse<any>>}
   */
  static checkPermission(){
    return axios.get(`${globalApi.authorize}`)
  }
}